package org.edu.modules.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

@Data
//数据表名
@TableName("ve_oa_meet")
//返回值变程对象本身
@Accessors(chain = true)
//重写toString方法
@EqualsAndHashCode(callSuper = false)
public class VeOaMeetEntity {

    /**主键id*/
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Long id;

    //会议主题
    @Excel(name = "会议主题", width = 15)
    @ApiModelProperty(value = "会议主题")
    @TableField(value = "title")
    private String title;

    //会议内容
    @Excel(name = "会议内容", width = 15)
    @ApiModelProperty(value = "会议内容")
    @TableField(value = "content")
    private String content;


    //会议场地id
    @Excel(name = "会议场地id", width = 15)
    @ApiModelProperty(value = "会议场地id")
    @TableField(value = "place_id")
    private Integer placeId;

    //联系人姓名
    @Excel(name = "联系人姓名", width = 15)
    @ApiModelProperty(value = "联系人姓名")
    @TableField(value = "contact_man")
    private String contactMan;

    //联系电话
    @Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    @TableField(value = "mobile")
    private String mobile;

    //联系邮箱
    @Excel(name = "联系邮箱", width = 15)
    @ApiModelProperty(value = "联系邮箱")
    @TableField(value = "email")
    private String email;

    //会议审核状态 (0 申请中 1 已通过 2 未通过)
    @Excel(name = "会议审核状态 (0 申请中 1 已通过 2 未通过)", width = 15)
    @ApiModelProperty(value = "会议审核状态 (0 申请中 1 已通过 2 未通过)")
    @TableField(value = "status")
    private Integer status;

    //开始时间
    @Excel(name = "开始时间", width = 15)
    @ApiModelProperty(value = "开始时间")
    @TableField(value = "start_time")
    private Date startTime;

    //结束时间
    @Excel(name = "结束时间", width = 15)
    @ApiModelProperty(value = "结束时间")
    @TableField(value = "end_time")
    private Date endTime;

    //外部参与会议人员
    @Excel(name = "外部参与会议人员", width = 15)
    @ApiModelProperty(value = "外部参与会议人员")
    @TableField(value = "user_out")
    private String userOut;

    //会议审核原因
    @Excel(name = "会议审核原因", width = 15)
    @ApiModelProperty(value = "会议审核原因")
    @TableField(value = "reason")
    private String reason;

    //审核人id
    @Excel(name = "审核人id", width = 15)
    @ApiModelProperty(value = "审核人id")
    @TableField(value = "audit_user_id")
    private String auditUserId;

    //审核时间
    @Excel(name = "审核时间", width = 15)
    @ApiModelProperty(value = "审核时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date auditTime;

    //创建人
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    //创建时间
    @Excel(name = "创建时间", width = 15)
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //逻辑删除
    @ApiModelProperty(value = "逻辑删除(1:已删除，0:未删除)")
    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    //终端id
    @Excel(name = "终端id", width = 15)
    @ApiModelProperty(value = "终端id")
    @TableField(value = "terminalId")
    private Integer terminalId;

    //审核人姓名
    @Excel(name = "审核人姓名", width = 15)
    @ApiModelProperty(value = "审核人姓名")
    @TableField(value = "audit_user_name")
    private String auditUserName;

}
